package cn.hl.hm.vo;

import cn.hl.hm.entity.Driver;

import java.math.BigDecimal;

/**
 * @description: 司机基本信息
 * @Author: xianghan
 * @Date: 2017/10/25 18:06
 **/
public class DriverInfoVo {
    private String name;
    private Integer id;
    private String driverAccount;
    private String headPic;
    private String driverPhone;
    private BigDecimal remainCash;
    private String driverStatus;
    private Integer successOrderCount;
    private BigDecimal totalIncome;
    private Integer commentCount;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setDriverAccount(String driverAccount) {
            this.driverAccount = driverAccount;
        }
        public String getDriverAccount() {
            return driverAccount;
        }

        public void setHeadPic(String headPic) {
            this.headPic = headPic;
        }
        public String getHeadPic() {
            return headPic;
        }

        public void setDriverPhone(String driverPhone) {
            this.driverPhone = driverPhone;
        }
        public String getDriverPhone() {
            return driverPhone;
        }

        public void setRemainCash(BigDecimal remainCash) {
            this.remainCash = remainCash;
        }
        public BigDecimal getRemainCash() {
            return remainCash;
        }

        public void setDriverStatus(String driverStatus) {
            this.driverStatus = driverStatus;
        }
        public String getDriverStatus() {
            return driverStatus;
        }

        public void setSuccessOrderCount(Integer successOrderCount) {
            this.successOrderCount = successOrderCount;
        }
        public Integer getSuccessOrderCount() {
            return successOrderCount;
        }

        public void setTotalIncome(BigDecimal totalIncome) {
            this.totalIncome = totalIncome;
        }
        public BigDecimal getTotalIncome() {
            return totalIncome;
        }

        public void setCommentCount(Integer commentCount) {
            this.commentCount = commentCount;
        }
        public Integer getCommentCount() {
            return commentCount;
        }

    public DriverInfoVo(Driver driver) {
        this.name = driver.getName();
        this.id = driver.getId();
        this.driverAccount = driver.getDriverAccount();
        this.headPic = driver.getHeadPic();
        this.driverPhone = driver.getDriverPhone();
        this.remainCash = driver.getRemainCash();
        this.driverStatus = driver.getDriverStatus();
        this.successOrderCount = driver.getSuccessOrderCount();
        this.totalIncome = driver.getTotalIncome();
        this.commentCount = driver.getCommentCount();
    }
}
